// Example model

const mongoose = require('mongoose');
const Schema = mongoose.Schema;

const ConversationSchema = new Schema({
    user: {
        type: Schema.ObjectId,
        ref: 'User',
        required: '`user`是必填参数'
    },
    creatAt: {
        type: String,
        require: '`createAt`是必填参数'
    },
    question: {
        type: String,
        require: '`question`是必填参数'
    },
    answer: {
        type: String,
        default: ''
    }
});


mongoose.model('Conversation', ConversationSchema);
